package com.qcc.week11;

import com.qcc.week11.pubsub.PublishOrder;
import com.qcc.week11.pubsub.SubscribeOrder;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import redis.clients.jedis.JedisPool;

@SpringBootApplication
public class Week11Application {

    public static void main(String[] args) {
        String channelName = "ORDER";
        JedisPool jedisPool = new JedisPool();
        SubscribeOrder subscribeOrder = new SubscribeOrder(jedisPool, channelName);
        PublishOrder publishOrder = new PublishOrder(jedisPool, channelName);

        SpringApplication.run(Week11Application.class, args);
    }

}
